<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>菜单列表</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="$request.getContextPath()/resources/layui/css/layui.css">
<link rel="stylesheet" href="$request.getContextPath()/resources/bootstrap-table/css/bootstrap-table.min.css">
<link rel="stylesheet" href="$request.getContextPath()/resources/cws/system/log/list.css" />

<link href="$request.getContextPath()/resources/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet">
</head>
<body>
	<div class="container-fluid">
		<div class="searchform">
			<form class="form-horizontal" role="form">
				<div class="form-group">
					<label for="roleType" class="col-sm-1 control-label">开始时间</label>
					<div class="col-sm-2">
					    <div class='input-group date datepicker' id='datepicker'>
		                    <input type='text' class="form-control" name="startDate"/>
		                    <span class="input-group-addon">
		                        <span class="glyphicon glyphicon-calendar"></span>
		                    </span>
		                </div>
					</div>
					<label for="roleName" class="col-sm-1 control-label">结束时间</label>
					<div class="col-sm-2">
						<div class='input-group date datepicker' id='datepicker2'>
		                    <input type='text' class="form-control" name="endDate"/>
		                    <span class="input-group-addon">
		                        <span class="glyphicon glyphicon-calendar"></span>
		                    </span>
		                </div>
					</div>
					<div class="col-sm-2">
						<button type="button" onclick="queryLog()" class="btn btn-default">查询</button>
					</div>
				</div>
			</form>
		</div>
		<div id="toolbar">
			#if($shiro.hasPermission('system:log:export'))
				#if($model.has('sys_user_log'))
					<a type="button" class="btn btn-default btn-sm" href="$request.getContextPath()/common/export/excel/sys_user_log/xlsx"><span class="glyphicon glyphicon-export"></span>导出</a>
				#end
			#end
			#if($shiro.hasPermission('system:log:statistics('))
				<button type="button" class="btn btn-default btn-sm" onclick="logStatistics()"><span class="glyphicon glyphicon-star"></span>统计</button>
			#end
		</div>
		<table id="logTable" 
		    data-toolbar="#toolbar" 
		    data-show-refresh="true"
			data-search="false" 
			data-show-toggle="true" 
			data-show-columns="true"
			data-show-export="true" 
			data-id-field="id" 
			data-show-export="true"
			data-pagination="true" 
			data-query-params="queryParams"
			data-query-type="limit" 
			data-show-footer="false"
			data-click-to-select="true" 
			data-single-select="false"
			data-striped="true" 
			data-method="get"
			data-url="$request.getContextPath()/system/log/page"
			data-side-pagination="server" 
			data-page-list="[10, 25, 50, 100, ALL]"
			data-show-pagination-switch="true" 
			data-id-field="userId"
			data-search-on-enter-key="true" 
			data-pagination-v-align="bottom"
			data-show-pagination-switch="true">
		</table>
	</div>
</body>
<script src="$request.getContextPath()/resources/jquery/jquery-3.1.0.min.js"></script>
<script src="$request.getContextPath()/resources/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layer/layer.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/layui.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/layui/lay/modules/element.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table.min.js"></script>
<script type="text/javascript" src="$request.getContextPath()/resources/bootstrap-table/js/bootstrap-table-zh-CN.min.js"></script>

<script src="$request.getContextPath()/resources/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script src="$request.getContextPath()/resources/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>

<script type="text/javascript">
	var logPermissionButtons=[];
	var logEditPermission="$shiro.hasPermission('system:log:delete')";
	if(logEditPermission&&logEditPermission=="true"){
		logPermissionButtons.push('<button type="button" class="btn btn-default btn-sm deleteUser"><span class="glyphicon glyphicon-trash"></span>删除</button>');
	}
</script>
<script type="text/javascript" src="$request.getContextPath()/resources/cws/system/log/list.js"></script>
</html>
#parse("/portal/account/footer2.html")